<?php



$deleteid = (int) get('delete');
if($deleteid > 0 && $DB->countRows($CONFIG->dbprefix.'jfxlinker_mapper', "id = '{$deleteid}'")>0){
    $uData = $DB->fetchRow("SELECT * FROM {$CONFIG->dbprefix}jfxlinker_mapper WHERE id = '{$deleteid}'");
    $this->removeUrl($uData['url']);
    JFX::redirect($this->adminUrl);
}

















$links = $DB->fetchAll("SELECT * FROM {$CONFIG->dbprefix}jfxlinker_mapper ORDER BY url ASC");

foreach($links as $k=>$v){
    $links[$k]['heading'] = $LANG->getContent('core', 'heading', $v['page_id']);
}



$SMARTY->assign('links', $links);


echo $this->fetchTemplate('admin.list.tpl');


































